package com.ruoyi.youtian.service;


import com.ruoyi.youtian.domain.Dictionary;

import java.util.List;

/**
 * 字典Service接口
 *
 * @author ruoyi
 * @date 2022-09-06
 */
public interface IDictionaryService
{
    /**
     * 查询字典
     *
     * @param dictionaryId 字典主键
     * @return 字典
     */
    public Dictionary selectDictionaryByDictionaryId(Long dictionaryId);

    /**
     * 查询字典列表
     *
     * @param dictionary 字典
     * @return 字典集合
     */
    public List<Dictionary> selectDictionaryList(Dictionary dictionary);

    /**
     * 新增字典
     *
     * @param dictionary 字典
     * @return 结果
     */
    public int insertDictionary(Dictionary dictionary);

    /**
     * 修改字典
     *
     * @param dictionary 字典
     * @return 结果
     */
    public int updateDictionary(Dictionary dictionary);

    /**
     * 批量删除字典
     *
     * @param dictionaryIds 需要删除的字典主键集合
     * @return 结果
     */
    public int deleteDictionaryByDictionaryIds(Long[] dictionaryIds);

    /**
     * 删除字典信息
     *
     * @param dictionaryId 字典主键
     * @return 结果
     */
    public int deleteDictionaryByDictionaryId(Long dictionaryId);
}
